package cc.hghl.hello.serv.impl;

import cc.hghl.hello.serv.HelloServ;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;

@Service
public class HelloServImpl implements HelloServ {
    @Override
    public JSONObject testJSON(String email, String message) {
        System.out.println(new Throwable().getStackTrace()[0] + "正在执行，即将给" + email + "发送消息：" + message);
        System.out.println("打开COM1把消息发送到COM2");
        System.out.println("把消息发送到目标邮箱");
        JSONObject o = new JSONObject();
        o.put("success", true);
        o.put("message", "操作执行成功！");
        return o;
    }
}
